package com.zhuss.team.publishUser;

import com.zhuss.bean.bo.team.publish.DetailPublishUserBo;
import com.zhuss.bean.bo.team.publish.SearchPublishUserBo;
import com.zhuss.common.ReadService;
import com.zhuss.exception.WpsException;
import com.zhuss.team.processor.PublishUserRead;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/3 14:25
 */
@Component("publishUserReadService")
public class PublishUserReadService implements ReadService<Object,Object> {

    @Autowired
    @Qualifier("publishUserRead")
    private PublishUserRead publishUserRead;

    @Override
    public Object detail(Object o) throws WpsException {
        return null;
    }

    @Override
    public Object list(Object o) throws WpsException {
        SearchPublishUserBo bo = (SearchPublishUserBo) o;
        Object result = publishUserRead.list(bo);
        return result;
    }

    public Object answerList(DetailPublishUserBo o) throws WpsException {
        DetailPublishUserBo bo = (DetailPublishUserBo) o;
        Object result = publishUserRead.answerList(bo);
        return result;
    }
}
